// components/author.js 
Component({
  properties: {
    showAuthor: {
      type: Boolean,
      value: false
    }
  },
  data: {
  },
  methods: { 

    getUserInfo(e) {
        //触发父组件的事件
      var parentEventDetail = e.detail 
      var parentEventOption = {}
      this.triggerEvent('parentevent', parentEventDetail, parentEventOption)
    } 
  }
})